from flask import Flask,redirect,url_for
app = Flask(__name__)

@app.route('/home')
def Home():
    return redirect(url_for("login"))
@app.route('/login')
def login():
    return "欢迎来到登录页"
@app.route('/to')
def to():
    return redirect("https://www.baidu.com/")

if __name__ == '__main__':
    app.run()
